package com.studyinghome.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.studyinghome.entity.Order;
import com.studyinghome.entity.OrderItem;

/**
 * @author Leslie
 * @create 2023-02-10 14:46
 **/
public interface OrderService extends IService<Order> {
    /**
     * 查询通过id
     *
     * @param id id
     * @return {@link Order}
     */
    Order queryById(Long id);

    /**
     * 查询订单
     *
     * @param orderNo 订单没有
     * @return {@link Order}
     */
    Order queryByOrderNo(String orderNo);

    /**
     * 查询项
     *
     * @param itemId 项id
     * @return {@link OrderItem}
     */
    OrderItem queryItem(Long itemId);
}
